﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="AddBaseInfo.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Product.AddBaseInfo" Title="添加基本信息" %>
<%@ Register src="Wuc_ProductAddFlow.ascx" tagname="Wuc_ProductAddFlow" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript" src="/jskit.org/model/JskitAreaSelector.js"></script>
    <script type="text/javascript" src="/jskit.org/model/JskitAreaSelector.Data.js"></script>
    <link type="text/css" rel="Stylesheet" href="/jskit.org/model/JskitAreaSelector.css" />
    <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
    var jas = new JskitAreaSelector("jas");
    jas.setData(JskitAreaSelectorData);
    jas.setStartLevel(2);
    function doSelectArea(){
        jas.open(fixId("txt_ProducingAreaName"),fixId("txt_ProducingArea"));
    }
    function PageOnLoad(){
        $("#"+fixId("txt_ProducingAreaName")).value = jas.getNameByKey($("#"+fixId("txt_ProducingArea")).value);
    }
    try{
            tinyMCE.init({
		        mode : "textareas",
		        theme_advanced_toolbar_location : "top",
		        theme_advanced_toolbar_align : "left",
            	language : "zh",
		        theme : "advanced",
		        //theme_advanced_fonts:"宋体=宋体;新宋体=新宋体;黑体=黑体;隶书=隶书,Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
		        // Theme options
		        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
		        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		        theme_advanced_buttons3 : "",
		        plugin_insertdate_dateFormat : "%Y-%m-%d",
		        plugin_insertdate_timeFormat : "%H:%M:%S"
	        });
	}catch(e){
	    //alert(e.message);
	}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
添加基本属性
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <uc1:Wuc_ProductAddFlow ID="Wuc_ProductAddFlow1" runat="server" />
    <div class="action_bar">
        <asp:Button ID="btn_Prevouse" runat="server" Text="上一步" 
            onclick="btn_Prevouse_Click" />
        <asp:Button ID="btn_save" runat="server" Text="下一步" OnClick="btn_save_Click" />
        <asp:Button ID="btn_Finish" runat="server" Text="完成" 
            onclick="btn_Finish_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Product/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>基本属性</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">分类：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:Label runat="server" ID="lab_CategoryName"></asp:Label>
                    <asp:HiddenField runat="server" ID="hid_CategoryKey" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">产品名称：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_ProductName" Width="440px" MaxLength="50"></asp:TextBox>
                </td>
            </tr>            
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">规格型号：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Model"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    <span class="required">产品编号：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_ProductNo"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    长度：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Length"></asp:TextBox>(米)
                </td>
                <td class="edit_form_item_title">
                    宽度：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Width"></asp:TextBox>(米)
                </td>
                <td class="edit_form_item_title">
                    高度：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Height"></asp:TextBox>(米)
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    重量：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Weight"></asp:TextBox>(千克)
                </td>
                <td class="edit_form_item_title">
                    体积：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Volume"></asp:TextBox>(立方米)
                </td>
                <td class="edit_form_item_title">
                    材质：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_Material">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    颜色：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Color"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    产地：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ProducingAreaName" onclick="doSelectArea()"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="txt_ProducingArea" />
                </td>
                <td class="edit_form_item_title">
                    生产商：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Manufacturer"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    生产日期：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ProductDate" onclick="jskitDateSelector.open(this,event)"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    出厂日期：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_FactoryDate" onclick="jskitDateSelector.open(this,event)"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    属性：
                </td>
                <td class="edit_form_item_content">
                    <asp:CheckBox runat="server" ID="cbx_Colorable" Text="可改色" />
                    <asp:CheckBox runat="server" ID="cbx_Sizable" Text="可改尺" />
                </td>
                <td class="edit_form_item_title">
                    计价单位：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_Unit"></asp:DropDownList>
                </td>
                <td class="edit_form_item_title">
                    点击量：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ClickCount"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    附属物品：
                </td>
                <td class="edit_form_item_content" colspan="5">
                    <asp:TextBox runat="server" ID="txt_Attechment" Width="440px" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    Tags：
                </td>
                <td class="edit_form_item_content" colspan="5">
                    <asp:TextBox runat="server" ID="txt_Tags" Width="440px" />
                </td>
            </tr>
           
            <tr>
                <td class="edit_form_item_title" valign="top">
                    简介：
                </td>
                <td colspan="5" class="edit_form_item_content">
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="mtxt_Desc" Height="300px" Width="730px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
